package com.lzj.demo.design.iterator;

public interface Collection<T,L> extends Iterable<T>{
    boolean add(T e);
    boolean remove(T e);
    boolean addLink(Long key,L l);
    boolean removeLink(Long key);
    //返回一个迭代器
    Iterator<T> iterator();
}
